﻿#ifndef __SS_WX_CONSOLE_H__
#define __SS_WX_CONSOLE_H__
#include <wx/wx.h>
#include "console/ssConsole.h"

using namespace StarSeeker;

class ssWXConsole : public wxFrame, public ssConsole
{
public:
	ssWXConsole(wxWindow *parent, const wxPoint& pos, const wxSize& size);
	~ssWXConsole();
	virtual void Print(const char* str);
	virtual void Printf(const char *strf, ...);
	void Print(wxString& str);
	void ShowMessage(const char* str);

	static void Create(wxWindow *parent, const wxPoint& pos, const wxSize& size);
	static void Delete();
private:
	DECLARE_EVENT_TABLE();
	void OnClear(wxCommandEvent& event);
	void OnEnter(wxCommandEvent& event);
	void OnSize(wxSizeEvent& event);

	wxListBox			m_list;
	wxTextCtrl			m_text;
	wxButton			m_in;
};

#define wxSTR(str) wxString(str,wxConvLocal)

#endif
